package com.origin.src.mybatis;

import com.github.pagehelper.PageHelper;
import com.origin.src.ApplicationTool;
import com.origin.src.mybatis.mapper.TUserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MapperTest {

    @Test
    public void test1() {
        AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext(MyBatisApp.class);
        ApplicationTool.printBean(app);
        TUserMapper tUserMapper = app.getBean(TUserMapper.class);
        PageHelper.startPage(1, 100);
        System.out.println(tUserMapper.getOrderCount(
                null, null, null, null, null));

    }

}
